<!doctype html>
<html>
<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <title>金莎国际</title>
    <link href="../css/newStyle1.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="../js/common.js"></script>
    <script type="text/javascript" src="../js/gbRst.js"></script>
    <script type="text/javascript" src="../js/utils.js"></script>
    <script type="text/javascript" src="../js/openId.js"></script>
    <script type="text/javascript" src="../js/header&footer.js"></script>
    <script type="text/javascript" src="../js/ad1.js"></script>
    <script type="text/javascript" src="../js/swipe.js"></script>
    <script type="text/javascript" src="../js/qmsk-1.3.js"></script>
    <script type="text/javascript" src="../js/addReadNum.js"></script>
    <script type="text/javascript" src="../js/fx1.js"></script>
    <script type="text/javascript">
        $(function () {
            loadAd("banner", 1);
            loadItems(1);
        });

        function loadItems(typeId) {
            qmsk.get("/JSGJWxWeb/carLesson/find/adList", {
                'typeId': typeId,
                'shopId': _shopId
            }, function (response) {
                //"id","shopId","shopName","typeName","title","number","indexUrl","imageUrl",
                //"createdTime","validDateTime","staName","status","memo","typeId","keyWord","subMan"
                var row = response.row;
                for (var i = 0; row && i < row; i++) {
                    var url = response.getValue("indexUrl", i);
                    var id = response.getValue("id", i);
                    var title = response.getValue("title", i);
                    var imageUrl = response.getValue("imageUrl", i);
                    if (i % 2 == 0) {
                        var dl = "<dl class=\"buildList\" onclick=\"toS('" + url + "'," + id + ")\"><dd class=\"fl\" style=\"background:#85c9d4;\"><strong class=\"title\">" + title + "</strong><span class=\"goRow\"></span></dd><dt><img src=\"" + imageUrl + "\"></dt></dl>";
                    } else {
                        var dl = "<dl class=\"buildList\" onclick=\"toS('" + url + "'," + id + ")\"><dt class='fl'><img src=\"" + imageUrl + "\"></dt><dd style=\"background:#b9a685\"><strong class=\"title\">" + title + "</strong><span class=\"goRow\"></span></dd></dl>";
                    }
                    $("#allInfo").append(dl);
                }
            });
        }

        function toS(url, id) {
            _addReadNmber(id, url);
        }
    </script>
</head>

<body>
<div class="wrapper">
    <div class="container">
        <div id='banner' class='swipe' style="margin-top: 2px;"></div>
        <div id="allInfo"></div>
    </div>
</div>
</body>
</html>
